package com.aquan.spring.sample.circul.beans;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
public class ServiceA {

    @Autowired
    private ServiceB serviceB;

    @Transactional
    public void sayHelloFromA() {
        System.out.println(" --- say hello from A --- ");
    }

    public ServiceB getServiceB() {
        return serviceB;
    }

    public void setServiceB(ServiceB serviceB) {
        this.serviceB = serviceB;
    }
}
